﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Jayden.Dll.Web.Enums;

namespace Jayden.Dll.Web.Styles
{
	public class CssMediaQuery : CssElementCollection
	{
		private string m_Expression;

		public string Expression { get { return m_Expression; } set { m_Expression = value; } }

		public override void Render(TextWriter writer, RenderMode mode, int indentation)
		{
			writer.WriteLine("@media {0} {", m_Expression);
			base.Render(writer, mode, indentation + 1);
			writer.WriteLine("}");
		}

	}
}
